package myschool.test2;

import myschool.dao.StudentDao;
import myschool.entity.Student;
import myschool.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class Test3 {
    public static void main(String[] args) {
        SqlSession s= MybatisUtil.get();
        StudentDao mapper = s.getMapper(StudentDao.class);
        List<Student> l1 = mapper.paging2(1, 6,"sname");
        System.out.println(l1);
        MybatisUtil.close(s);

    }
}
